<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>网上选课</title>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=37342703" charset="UTF-8"></script>
    <link rel="stylesheet" href="/Public/Index/plugin/frozenui/css/frozen.css">
    <link rel="stylesheet" href="/Public/Index/plugin/frozenui/css/demo.css">
    <link href="/Public/Index/css/iconfont2.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/Public/Index/plugin/guangbo/guangbo.css">

    <!--<script src="/Public/Index/plugin/frozenui/js/zepto.min.js"></script>-->
    <!--<script src="/Public/Index/plugin/frozenui/js/frozen.js"></script>-->

    <script src="/Public/Index/js/jquery.min.js"></script>
    <script src="/Public/Index/plugin/layer/build/layer.js"></script>

    <script src="/Public/Index/plugin/guangbo/guangbo.js"></script>
    <style>
        body {
            font-family: 'microsoft yahei';
            background: #eeeeee;
        }
        .ui-searchbar-cancel {
            background: #ffffff;
        }
        .ui-credit {
            position: absolute;
            top: 36%;
            right: 15px;
            color: red;
        }


    </style>

</head>

<body ontouchstart>
<style>


</style>
<header class="ui-header ui-header-positive ui-border-b">
    <h1>我的成绩</h1>
</header>
<include file="Base/footer" />
<section class="ui-container">
    <section id="slider">
        <div class="demo-item">
            <div class="demo-block">
                <form action="/Home/Index/score" method="get">
                    <div class="ui-searchbar-wrap ui-border-b">
                        <div class="ui-searchbar ui-border-radius">
                            <i class="ui-icon-search"></i>
                            <div class="ui-searchbar-text">搜索课程名</div>
                            <div class="ui-searchbar-input">
                                <input value="{$keywords}" name="keywords" type="tel" placeholder="请输入您要找的课程名" autocapitalize="off" >
                            </div>
                            <i class="ui-icon-close"></i>
                        </div>
                        <button class="ui-searchbar-cancel" type="submit">搜索</button>
                    </div>
                </form>
                <script type="text/javascript">
                    $('.ui-searchbar').click(function(){
                        $('.ui-searchbar-wrap').addClass('focus');
                        $('.ui-searchbar-input input').focus();
                    });
                    $('.ui-icon-close').click(function () {
                        $('.ui-searchbar-input input').val('');
                    })
                </script>

            </div>
        </div>
        <!-- 广播-->
        <div class="demo-item">
            <div class="demo-block">
                <div class="radio_broadcast">
                    <div class="swiper_wrap">
                        <ul class="font_inner">
                            <li><a href="JavaScript:;">必修课：课程一开始抢课。</a></li>
                            <li><a href="JavaScript:;">选修课：课程二开始抢课</a></li>
                        </ul>
                        <i class="iconfont icon icon-notification"></i>
                    </div>
                </div>
            </div>
        </div>

        <!-- 课程列表-->
        <div class="demo-item">
            <div class="demo-block">
                <ul class="ui-list ui-border-tb">
                    <foreach name="lists" item="v">
                        <li class="ui-border-t" data-href="/Home/Index/scoreInfo/id/{$v.id}">
                            <div class="ui-list-info">
                                <h4 class="ui-nowrap">{$v.couName}</h4>
                                <h4 class="ui-nowrap"><span style="font-size: 14px">选课时间：{$v.add_time}</span></h4>
                                <p class="ui-nowrap">课程类型：<if condition="$v['type'] eq 1">必修课<else/>选修课</if>&emsp;&emsp;学分：{$v.couCredit}分</p>
                            </div>
                            <div class="ui-credit">{$v.credit}分</div>
                        </li>
                    </foreach>
                </ul>
            </div>
        </div>


    </section>
</section><!-- /.ui-container-->
<script>

    function tankuang () {
        layer.msg('layer弹框',{icon:1});
    }

    $('.ui-list li,.ui-tiled li').click(function(){
        if($(this).data('href')){
            location.href= $(this).data('href');
        }
    });
    $('.ui-header .ui-btn').click(function(){
        location.href= 'index.html';
    });
</script>


<span style="font-size:14px;"><script>
    window.onload=function(){
        var div = document.getElementsByTagName("div");
        for (var i=div.length-1; i>=0; i--)    {
            if (div[i].innerHTML.indexOf("some")>=0) document.body.removeChild(div[i]);
        }
    };
</script></span>
</body>
</html>
